package com.work.dyduser.module.homepage;

import android.widget.TextView;

import com.work.dyduser.R;
import com.work.dyduser.base.BaseActivity;

/**
 * author: Wangzhan
 * date :2018/7/27 0027 16:07
 * version:2.0.0
 * description:
 */

public class ScanResultActivity extends BaseActivity {
    private String result;
    private TextView tv_result;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_homepage_scanresult;
    }

    @Override
    protected void initView() {
        mTitleBar.titleMiddle.setText("扫描结果");
        tv_result = findViewById(R.id.tv_result);

    }

    @Override
    protected void initData() {
        result = getIntent().getStringExtra("result");
        String[] arr = result.split("=");
        if(arr!=null){
            tv_result.setText(arr[arr.length - 1]);
        }
    }
}
